//
//  DiaryEditViewController.m
//  PSYWeiBo
//
//  Created by xiaotian on 16/3/17.
//  Copyright © 2016年 郑亚田. All rights reserved.
//

#import "DiaryEditViewController.h"
#import "DiaryDetaiImgView.h"

@interface DiaryEditViewController ()

@end

@implementation DiaryEditViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.titleLab.text = @"写日记";
    
    [self setViews];
}

- (void)setViews {
    self.detailImgV = [[DiaryDetaiImgView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
    self.detailImgV.userInteractionEnabled = YES;
    [self.view addSubview:self.detailImgV];
    [self.detailImgV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.headerImgV.mas_bottom);
        make.left.right.bottom.equalTo(@0);
    }];
    UIImageView *editImg = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"diary-foot-bg"]];
    [self.detailImgV addSubview:editImg];
    [editImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.equalTo(@0);
        make.height.equalTo(@60);
    }];
    
    [self.editBtn setTitle:@"保存" forState:UIControlStateNormal];
    [self.editBtn addTarget:self action:@selector(editBtnClick:) forControlEvents:UIControlEventTouchUpInside];
}

- (void)editBtnClick:(UIButton *)sender {
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

@end
